from django.conf import settings
from django.contrib import admin
from django.urls import include, path

urlpatterns = [
    # path('404.html', page404),
    # path('500.html', page500),
    # path('favicon.ico', favicon),
    # path('robots.txt', robotstxt),
]


if settings.DEBUG:
    from django.conf.urls.static import static
    from django.contrib.staticfiles.urls import staticfiles_urlpatterns

    # Serve static and media files from development server
    urlpatterns += staticfiles_urlpatterns()
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

if settings.USE_DEBUG_TOOLBAR:
    urlpatterns += [
        path('__debug__/', include('debug_toolbar.urls')),
    ]

urlpatterns = urlpatterns + [
    path('', admin.site.urls),
]
